package com.broada.apm.indicator.api.model;

import java.util.HashMap;
import java.util.Map;

/**
 * 用于Es更新操作实体类 1、唯一id 2、修改的Map item项
 * 
 * @author Administrator Create By Feb 11, 2015 2:16:16 PM
 */
public class Variable {
	private String id;
	private Map<String, Object> item = new HashMap<String, Object>();

	private Variable() {
	}

	public static Variable newBuilder() {
		return new Variable();
	}

	public Variable addItem(String filed, Object value) {
		item.put(filed, value);
		return this;
	}

	public String getId() {
		return id;
	}

	public Variable setId(String id) {
		this.id = id;
		return this;
	}

	public Map<String, Object> getItem() {
		return item;
	}

	public Variable setItem(Map<String, Object> item) {
		this.item = item;
		return this;
	}

}